package com.itheima.string;

public class Demo1 {
    public static void main(String[] args) {
        String s1 = "abc";
        String s2 = new String("abc");

        System.out.println(s1 == "abc");
        System.out.println(s1.equals("abc"));
        System.out.println(s1 == s2);
        System.out.println(s1.equals(s2));
        System.out.println(s1.equalsIgnoreCase("Abc"));
    }
}
